package com.lmq.wxshare.common;

import java.util.Random;

public class ProduceCommon {

    public static Integer getRedPacket(Integer price){
        Integer one = new Random().nextInt(40);
        while (one<30){
            one = one+10;
        }
        return price*one/100;
    }

    public static Integer getRedPacketToFriend(){
        Integer redpacket = new Random().nextInt(88);
        return  redpacket;
    }

    public static void main(String[] args) {
        System.out.println(getRedPacketToFriend());
    }

}
